package com.mxx.pmxt.dao;

import com.mxx.pmxt.model.PUsersModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PUsersModelMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(PUsersModel record);

    int insertSelective(PUsersModel record);

    PUsersModel selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(PUsersModel record);

    int updateByPrimaryKey(PUsersModel record);

    List<PUsersModel> getAllUser();
    //获取全部用户列表

    List<PUsersModel> getUserByName(@Param("uname")String uname);

}